<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*,dto.Department" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" contentType="text/html; charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="updateDepartment">
<table>
<tr>
<td>社员编号</td>
<td>社团名字</td>
<td>部门编号</td>
<td>部门名字</td>
</tr>

<%

Vector<Department> v=(Vector<Department>)session.getAttribute("allDepartment");
Iterator<Department>it=v.iterator();
String depart=request.getParameter("depart");
Department d=null;
while(it.hasNext()){
	d=it.next();	
	if(d.getdepart().equals(depart)){
%>
<tr>
 <td><input type="text" name="mId" readonly="true" value=<%=d.getmId() %>></td>
 <td><input type="text" name="cName" value=<%=d.getcName() %>></td>
 <td><input type="text" name="depart" value=<%=d.getdepart() %>></td>
 <td><input type="text" name="dName" value=<%=d.getdName() %>></td>
 <td><input type="submit" value="确定修改"></td>
</tr>
<% 	
}
	}
%>

</table>
</form>
</body>
</html>